package com.java.service;

import com.java.entity.AccountInfo;
import com.java.entity.event.AccountInfoEvent;
import com.java.util.resp.BaseRespone;
import com.java.util.resp.TableRespone;

public interface AccountService {

	BaseRespone saveAuth(String openId, String nick, String logo);

	public BaseRespone login(String user, String password);

	public BaseRespone register(String username, String password, String nick);
	
	AccountInfoEvent getAccount(String accountId);
	
	public TableRespone getAccountList(int page, int size);

	BaseRespone update(AccountInfo account);

	BaseRespone updateRole(String accountId);

	BaseRespone updateUser(AccountInfo info);
}
